Move some comments around
authorMatthias Clasen <mclasen@redhat.com>
Mon, 23 Jun 2014 02:04:00 +0000 (22:04 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 23 Jun 2014 02:04:00 +0000 (22:04 -0400)
gtk/gtkicontheme.c

index 3c427d683b058190fb9011be89620184ab501dd9..86b4e157ea98f7d116066de57dc292c3daf24edb 100644 (file)
@@ -1710,9 +1710,7 @@ real_choose_icon (GtkIconTheme       *icon_theme,
     {
       icon_info = icon_info_new (ICON_THEME_DIR_UNTHEMED, size, 1);
 
-      /* A SVG icon, when allowed, beats out a XPM icon, but not
-       * a PNG icon
-       */
+      /* A SVG icon, when allowed, beats out a XPM icon, but not a PNG icon */
       if (allow_svg &&
           unthemed_icon->svg_filename &&
           (!unthemed_icon->no_svg_filename ||
@@ -1912,7 +1910,6 @@ choose_icon (GtkIconTheme       *icon_theme,
   return icon_info;
 }
 
-
 /**
  * gtk_icon_theme_lookup_icon:
  * @icon_theme: a #GtkIconTheme
@@ -3704,9 +3701,6 @@ icon_info_ensure_scale_and_pixbuf (GtkIconInfo *icon_info,
   if (icon_info->load_error)
     return FALSE;
 
-  /* SVG icons are a special case - we just immediately scale them
-   * to the desired size
-   */
   if (icon_info->icon_file && !icon_info->loadable)
     icon_info->loadable = G_LOADABLE_ICON (g_file_icon_new (icon_info->icon_file));
 
@@ -3770,6 +3764,9 @@ icon_info_ensure_scale_and_pixbuf (GtkIconInfo *icon_info,
                                      &icon_info->load_error);
       if (stream)
         {
+          /* SVG icons are a special case - we just immediately scale them
+           * to the desired size
+           */
           if (icon_info->is_svg)
             {
               gint size;